package com.book.service;

import com.book.mapper.BookMapper;

import com.entity.Book;
import com.entity.BookVo;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class BookServiceImpl implements BookService {
    @Autowired
    BookMapper bookMapper;

    @Override
    public List<Book> getBookList(BookVo vo) {
        return bookMapper.getBookList(vo);
    }

    @Override
    public int selectcount(BookVo vo) {
        return bookMapper.selectcount(vo);
    }

    @Override
    public int addBook(Book book) {
        return bookMapper.addBook(book);
    }

    @Override
    public int updatebook(Book book) {
        return bookMapper.updatebook(book);
    }

    @Override
    public int updatebookImg(Book book) {
        return bookMapper.updatebookImg(book);

    }

    @Override
    public int lendBook(int[] bid) {
        return bookMapper.lendBook(bid);
    }

    @Override
    public int deleteBook(int[] ids) {
        return bookMapper.deleteBook(ids);
    }

}
